<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="author" content="wangbo">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jsx语法</title>
</head>
<body>
    <div id="app"></div>
    <!-- 感觉创建dom 没有jquery 确实是,如果是
    web,手机,html5 react vue -->
    <!-- 顺序有要求 -->
    <script type="text/javascript" src="../js/react.development.js"></script>
    <!-- dom依赖于react.development.js -->
    <script type="text/javascript" src="../js/react-dom.development.js"></script>
    <!-- 将jsx 语法解析成js语法 -->
    <script type="text/javascript" src="../js/babel.min.js"></script>
    <!-- 下边的语句请用babel来解释 -->
    <script type="text/babel">
    /* let myh1 = React.createElement('h1',null,"我是h1"); 
    ReactDOM.render(myh1,document.getElementById("app")) */
    // 将JavaScript和xml语法相互的结合起来,就变成了jsx
        const myp = <h1> 我是jsx语法</h1>
        ReactDOM.render(myp,document.getElementById('app'))
    </script>

    
</body>
</html>